package br.com.fcomota.pi_iv_sie.dao;

import br.com.fcomota.pi_iv_sie.modelo.Usuario;
import br.com.fcomota.pi_iv_sie.utils.BD_SQLite;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

/**
 * Created by Francisco Mota.
 */
public class BD_SQLite_Usuario {
	private SQLiteDatabase bd;
	
	public BD_SQLite_Usuario(Context context){
		BD_SQLite auxBd = new BD_SQLite(context);
		bd = auxBd.getWritableDatabase();
	}
	
	
	public void inserir(Usuario usuario){
		ContentValues valores = new ContentValues();
		valores.put("nome", usuario.getNome());
		valores.put("senha", usuario.getSenha());
		
		bd.insert("usuario", null, valores);
	}

}
